<template>
  <el-container style="height: 98vh; border: 1px solid #eee;background: #fff">
     <SideBar />
	
	 <el-container>
	    <HeadBar />
	    
	    <el-main>

	    </el-main>
	  </el-container>
	
	
  </el-container>
</template>

<script>
import SideBar from '@/components/SideBar.vue'
import HeadBar from '@/components/HeadBar.vue'

export default {
	components:{SideBar,HeadBar},
	name:"HomeView",
    data() {
        return {
            logoURL: require("@/assets/" + "eSchool.jpg"),
			welcome_img:require("@/assets/welcome.jpg"),
			user:null,
			username:''
        }
    },
    created() {
		this.getUserInfo()
    },
    methods: {
        getUserInfo(){
			const userInfo = JSON.parse(sessionStorage.getItem("user"))
			this.username = userInfo?.data?.name || '未知用户'
			this.user = userInfo
		}
    }
}

</script>

